package de.gwtprime.client.places;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class UserAccountPlace extends Place{
	
	String name;
	public UserAccountPlace(String name){
		this.name = name;
	}
	public String getName(){
		
		return name;
	}
	
	@Prefix("!Account")
	public static class Tokenizer implements PlaceTokenizer<UserAccountPlace>{

		@Override
		public UserAccountPlace getPlace(String token) {
			return new UserAccountPlace(token);
		}

		@Override
		public String getToken(UserAccountPlace place) {
			return place.getName();
		}

		
	}
}
